package com.atguigu.yygh.orders.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author ztz
 * @since 2022-03-17
 */
public interface OrderInfoService extends IService<OrderInfo> {

    //创建订单
    Long saveOrder(String scheduleId, Long patientId);

    //根据条件查询，分页
    Page<OrderInfo> getPageList(Page iPage, OrderQueryVo orderQueryVo);

    //根据订单单号查询详细数据
    OrderInfo getOrders(Integer orderId);

    //根据订单单号查询详细数据
    OrderInfo getOrders(Long orderId);
    /**
     * 取消订单
     * @param orderId
     */
    Boolean cancelOrder(Long orderId);

    //每日八点进行医师提醒
    void patientTips(String dateString);

    //获取某一段时间得数量
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

}
